import request from '@/utils/request'

// 查询推优人员列表
export function listRecommendat(query) {
  return request({
    url: '/system/recommendat/list',
    method: 'get',
    params: query
  })
}

// 查询推优人员详细
export function getRecommendat(prId) {
  return request({
    url: '/system/recommendat/' + prId,
    method: 'get'
  })
}

// 新增推优人员
export function addRecommendat(data) {
  return request({
    url: '/system/recommendat',
    method: 'post',
    data: data
  })
}

// 修改推优人员
export function updateRecommendat(data) {
  return request({
    url: '/system/recommendat',
    method: 'put',
    data: data
  })
}

// 删除推优人员
export function delRecommendat(prId) {
  return request({
    url: '/system/recommendat/' + prId,
    method: 'delete'
  })
}
